Skip to content

fix Crazyhouse.isGameOver and isCheckmate when the only legal moves are drop moves#53

Merged
veloce merged 2 commits intolichess-org:mainfrom
tom-anders:crazyhouse-game-over
Mar 21, 2026
Merged

fix Crazyhouse.isGameOver and isCheckmate when the only legal moves are drop moves#53
veloce merged 2 commits intolichess-org:mainfrom
tom-anders:crazyhouse-game-over

Conversation

@tom-anders
Copy link
Contributor

No description provided.

'Kg2',
'Rh2+',
'Kg1',
'O-O-O#',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@veloce FYI this was not actually checkmate, since black can block the check by dropping a piece here :D That's why I had to change this test as well

Copy link
Collaborator

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@veloce veloce merged commit d2295f4 into lichess-org:main Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants